import originRequest from '@/services/request';
import { RUC_SERVICE } from './constant';

// 获取组织架构数据
// export async function getOrgData() {
//   return originRequest(`${RUC_SERVICE}/sys/org/getTreeData`, {
//     method: 'GET'
//   });
// }
export async function getOrgData() {
  return originRequest(`${RUC_SERVICE}/org/treeData`, {
    method: 'GET'
  });
}

// 创建表单，获取一级部门接口
export async function getFirstLevelDepts() {
  return originRequest('/ruc-api/api/ov-user/org/firstLevelOrgs', {
    method: 'GET'
  });
}
